package com.hjy.auth.feign;

import com.hjy.auth.vo.LoginVo;
import com.hjy.auth.vo.MemberEntity;
import com.hjy.auth.vo.RegisterVo;
import com.hjy.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

@FeignClient("gulimall-member")
public interface MemberFeignService {
    @RequestMapping("/member/member/register")
    public R register(@RequestBody RegisterVo registerVo);

    @RequestMapping("/member/member/login")
    public R login(@RequestBody LoginVo loginVo);

    @RequestMapping("/member/member/oauth/login")
    public MemberEntity oauthLogin(@RequestBody Map<String, String> map);
}
